package com.yima.baseproj.module.sys.user.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author 一码
 * @DATE 2021/10/23 10:15
 * @Description:
 */
@Data
public class SysUserAddParamModel {

    @NotBlank(message = "用户昵称不能为空")
    @Size(min = 1,max = 30,message = "用户昵称长度不正确")
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @NotBlank(message = "登录名称不能为空")
    @Size(min = 1,max = 30,message = "登录名称长度不正确")
    @ApiModelProperty(value = "登录名称")
    private String loginName;

    @ApiModelProperty(value = "头像")
    private String headUrl;

    @ApiModelProperty(value = "密码")
    private String password;

    @Size(min = 0,max = 11,message = "手机号长度不正确")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @Size(min = 0,max = 50,message = "Email长度不正确")
    @ApiModelProperty(value = "Email")
    private String email;

    @NotEmpty(message = "角色不能为空")
    @ApiModelProperty(value = "角色")
    private List<String> roleIdList;
}
